package com.yueyang.sojourn.server.common.baymax.web.result.exception;

import org.springframework.http.HttpStatus;

/**
  *  非法参数，此类异常将被转换为 Http Bad Request=400
  * @author huisman
*/
public class InvalidParameterException extends AbstractResultException {
	private static final long serialVersionUID = 1L;

	 /**
	  * @since 1.0.0
	  * @param code 业务错误码
	  * @param messsage  业务提示信息
	  */
	public InvalidParameterException(int code, String messsage) {
		super(code, messsage, HttpStatus.BAD_REQUEST);
	}


	 /**
	  * <p>
	  *  业务错误码为 {@link ResultCode#UNKNOWN}
	  * </p>
	  * @since 1.0.0
	  * @param message  业务提示信息
	  */
	public InvalidParameterException(String message) {
		super(message, HttpStatus.BAD_REQUEST);
		
	}
	
	

}
